home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / allfiles / angry / scene3_4.dir / 00004_Script_scene4Loop < prev    next >
Text File  |  1999-03-01  |  1KB  |  56 lines

  1. --FRAME:scene4Loop
  2. global rollSprite
  3. global gScene4Done
  4.  
  5. on enterFrame
  6.   set rollSprite = the rollOver
  7.   case rollSprite of
  8.     8:
  9.       --lori--
  10.       
  11.       if gScene4Done = #loriBook then
  12.         cursor [the memberNum of member "pointy", the memberNum of member "pointy_mask"]
  13.         go to frame "loriRaiseBook"
  14.       else
  15.         go to frame "LoriBook" 
  16.       end if
  17.     5:
  18.       --kid--
  19.       cursor [the memberNum of member "pointy", the memberNum of member "pointy_mask"]  
  20.       set the member of sprite 4 to member "hyperKidLOOP"
  21.       puppetSprite 7, TRUE --lori eyes
  22.       set the visible of sprite 7 = TRUE
  23.       set the member of sprite 7 to member "loriLook"
  24.       
  25.     otherwise
  26.       cursor -1
  27.   end case
  28.   
  29.   if NOT rollOver(5) then 
  30.     set the member of sprite 4 to member "kid00"
  31.     puppetSprite 7, FALSE --lori eyes
  32.     set the visible of sprite 7 = FALSE
  33.   end if
  34.   
  35.   
  36.   if the lastEvent > 5 * 60 AND gScene4Done = [] then 
  37.     --    startTimer
  38.     --    
  39.     --    repeat while the timer < 20
  40.     
  41.     set the member of sprite 4 to member "hyperKidLOOP"
  42.     puppetSprite 7, TRUE --lori eyes
  43.     set the visible of sprite 7 = TRUE
  44.     set the member of sprite 7 to member "loriLook"
  45.     --    end repeat
  46.   else
  47.     nothing
  48.   end if
  49.   
  50. end enterFrame
  51.  
  52.  
  53.  
  54. on exitFrame
  55.   go to the frame
  56. end exitFrame